{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" method="post" action="{url('add')}" enctype="multipart/form-data">
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>服务商:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="service_id">
                        <option value="">选择服务商</option>
                        {foreach $servicelist as $ser}
                        <option value="{$ser.id}">{$ser.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="name" class="layui-form-label">
                    <span class="x-red">*</span>名称
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="name" name="name" required="" lay-verify="name"
                    autocomplete="off" class="layui-input" style="width:300px;" >
                </div>
            </div>
            <div class="layui-form-item">
                <label for="appid" class="layui-form-label">
                    <span class="x-red">*</span>appid
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="appid" name="appid" required="" lay-verify="appid"
                    autocomplete="off" class="layui-input" style="width:300px;" >
                </div>
            </div>
            <div class="layui-form-item">
                <label for="path" class="layui-form-label">
                    <span class="x-red">*</span>路径
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="path" name="path" required="" lay-verify="path"
                    autocomplete="off" class="layui-input" style="width:300px;" >
                </div>
            </div>
            <div class="layui-form-item">
                <label for="picurl" class="layui-form-label">
                    <span class="x-red">*</span>链接
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="picurl" name="picurl" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" >
                </div>
            </div>
            <div class="layui-form-item">
                <label for="pic" class="layui-form-label">
                    <span class="x-red"></span>上传图片:
                </label>
                <div class="layui-input-inline">
                    <input type="file" id="pic" name="pic" style="width:300px;">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                   修改
                </button>
            </div>
      </form>
    </div>
    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则

    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>